#USE MULTITHREADED DIRECTX

Enables the DirectX runtime to be accessed from multiple threads.

  Syntax
#USE MULTITHREADED DIRECTX
  Returns

This directive does not return a value.

  Description

Specify this directive in a project that employs any third party plugin that will attempt to access the DirectX runtime from a different thread at the same time that your own code is rendering. This is for example necessary when using DarkLights unless you're just waiting until its lightmap generation succeeds without drawing anything in the meantime. Failing to utilize this precompiler directive in such a situation will cause your application to crash.
You should however not use this if necessary. The "multithreaded" behaviour is facilitated by locking the D3D device to the calling thread and and having the other wait its turn. This adds overhead to each DirectX function call that you would want to avoid unless actually utilizing the multithreading.

CORE Commands Menu
Index